FROM golang:latest

ENV GO111MODULE=on \
    CGO_ENABLED=0 \
    GOOS=linux \
    GOARCH=amd64 \
	GOPROXY="https://goproxy.cn,direct"


WORKDIR /home/app

COPY . .

RUN go build main.go

EXPOSE 9090

CMD ["./main"]